package com.design_pattern.decorator;

import com.peng.GameObject;

import java.awt.*;

public class ReactBulletDecorator extends GODecorator {

    public ReactBulletDecorator() {

    }

    public ReactBulletDecorator(GameObject go) {
        super(go);

    }

    @Override
    public void paint(Graphics g) {
        System.out.println("react。。。");
//        this.x = super.go.x;
//        this.y = super.go.y;
//        this.width = super.go.getWidth();
//        this.height = super.go.getHeight();
//        Color color = g.getColor();
//        g.setColor(Color.GREEN);
//        g.drawRect(this.x - 10, this.y - 18, this.width + 30, this.height + 30);
//        g.setColor(color);
        super.go.paint(g);


    }
}
